package com.ias.agdis_r.terminalmanager.restful.findluggage.vo;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * Created by zhangshaobo on 2018/6/11.
 */
public class LuggageVO {

    private String luggageId;       // 行李号
    private String luggageState;    // 结束标志位（结束传1）,如果上报模板拼接了行李号，则为已翻(state=1)。

    public LuggageVO(String luggageId, String luggageState) {
        this.luggageId = luggageId;
        this.luggageState = luggageState;
    }

    public LuggageVO(String luggageId) {
        this.luggageId = luggageId;
    }

    public LuggageVO() {
    }

    public String getLuggageId() {
        return luggageId;
    }

    public void setLuggageId(String luggageId) {
        this.luggageId = luggageId;
    }

    public String getLuggageState() {
        return luggageState != null ? luggageState : "0";   // 默认状态为"0"
    }

    public void setLuggageState(String luggageState) {
        this.luggageState = luggageState;
    }

    /** 是否行李已翻减 */
    @JsonIgnore
    public boolean isLuggageFind() {
        return "1".equals(luggageState);
    }

    /** 设置行李已翻减  */
    @JsonIgnore
    public void setLuggageFind() {
        luggageState = "1";
    }

}
